package com.example.hxds.bff.customer.service.impl;

import com.example.hxds.bff.customer.controller.form.ReceiveNewOrderMessageForm;
import com.example.hxds.bff.customer.feign.SnmServiceApi;
import com.example.hxds.bff.customer.service.NewOrderMessageService;
import com.example.hxds.common.util.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * @Author XUYANG
 * @Date 2024-03-20 18:11
 */
@Service
public class NewOrderMessageServiceImpl implements NewOrderMessageService {
    @Resource
    private SnmServiceApi snmServiceApi;
    @Override
    public ArrayList receiveNewOrderMessage(ReceiveNewOrderMessageForm form) {
        R r=snmServiceApi.receiveNewOrderMessage(form);
        ArrayList list= (ArrayList) r.get("result");
        return list;
    }
}
